package com.example.dingdong.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.example.dingdong.daomain.BasicUserEntity;

/**
 * @ClassName: BasicUserRepository
 * @Description:用户数据访问接口
 * @Author :chengwenixng
 * @DateTime 2021-06-03 23:09:46
 */
@Repository
public interface BasicUserRepository  extends JpaRepository<BasicUserEntity,Long>{
	
	/**
	 * 
	 * @Title: findByAccountAndDelFlag
	 * @Description:根据账号查询找用户
	 * @Author coding
	 * @DateTime 2021-06-04 11:19:26
	 * @param account
	 * @param delFlag
	 * @return
	 */
	BasicUserEntity findByAccountAndDelFlag(String account,boolean delFlag);
	/**
	 * @Title: findPhoneAndDelFlag
	 * @Description: 根据手机号查询找用户
	 * @Author coding
	 * @DateTime 2021-06-11 10:46:04
	 * @param phone
	 * @param delFlag
	 * @return
	 */
	BasicUserEntity findByPhoneAndDelFlag(String phone,boolean delFlag);
	/**
	 * 
	 * @Title: findByUserNameAndDelFlag
	 * @Description: 
	 * @Author coding
	 * @DateTime 2021-06-11 16:02:37
	 * @param userName
	 * @param delFlag
	 * @return
	 */
	BasicUserEntity findByUserNameAndDelFlag(String userName,boolean delFlag);

	
	/**
	 * 
	 * @Title: findByDelFlag
	 * @Description: 
	 * @Author coding
	 * @DateTime 2021-06-11 15:00:58
	 * @param delFlag
	 * @return
	 */
	List<BasicUserEntity> findByDelFlag(boolean delFlag);

	/**
	 * 
	 * @Title: findByIdAndDelFlag
	 * @Description: 根据id查找
	 * @Author coding
	 * @DateTime 2021-07-13 14:31:15
	 * @param id
	 * @param delFlag
	 * @return
	 */
	BasicUserEntity findByIdAndDelFlag(Long id, Boolean delFlag);

}
